/*
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cliente.main;

import cliente.codigo.Cliente;
import java.util.List;

/**
 *
 * @author Richiely Batista
 */
public class ClienteMain {

    public static void main(String[] args) {

        int siz = 2;
        char[][] comandos = new char[siz][];
        String[][] arquivos = new String[siz][];
        Cliente[] clientes = new Cliente[siz];
   
        
        comandos[0] = new char[]{'P', 'G', 'G', 'G', 'G', 
                                 'G', 'P', 'G', 'G', 'G',
                                 'G', 'G', 'G', 'G', 'P',
                                 'P', 'G', 'G', 'G', 'P'};
        
        arquivos[0] = new String[]{"vinte1c.txt", "vinte1s.txt", "um1s.txt", "vinte2s.txt", "vinte3s.txt", 
                                   "um2s.txt", "um1c.txt", "um3s.txt", "vinte4s.txt", "um4s.txt",
                                   "um5s.txt", "vinte5s.txt", "um6s.txt", "um7s.txt", "vinte2c.txt",
                                   "um2c.txt", "vinte6s.txt", "um8s.txt", "vinte7s.txt", "vinte3c.txt"};

        comandos[1] = new char[]{'P', 'G', 'G', 'G', 'G', 
                                 'G', 'P', 'G', 'G', 'G',
                                 'G', 'G', 'G', 'G', 'P',
                                 'P', 'G', 'G', 'G', 'P'};
        
        arquivos[1] = new String[]{"vinte1c1.txt", "vinte1s1.txt", "um1s1.txt", "vinte2s1.txt", "vinte3s1.txt", 
                                   "um2s1.txt", "um1c1.txt", "um3s1.txt", "vinte4s1.txt", "um4s1.txt",
                                   "um5s1.txt", "vinte5s1.txt", "um6s1.txt", "um7s1.txt", "vinte2c1.txt",
                                   "um2c1.txt", "vinte6s1.txt", "um8s1.txt", "vinte7s1.txt", "vinte3c1.txt"};

        for (int i = 0; i < siz; i++) {
            clientes[i] = new Cliente("localhost", 7000, comandos[i], arquivos[i]);
            clientes[i].start();
        }
    }
}
